#!/usr/bin/env python
# encoding: utf-8
"""
configtest.py

Created by 黄 冬 on 2007-12-15.
Copyright (c) 2007 __MyCompanyName__. All rights reserved.
"""

import unittest

from xbaytable.conf import *

class ConfigTest(unittest.TestCase):
    def setUp(self):
        pass

    def test_get_sequence_id(self):
        """测试生成的id"""
        id_a = get_sequence_id()
        id_b = get_sequence_id()
        self.assertEqual(id_b-id_a,1)

def suite():
    """集合测试用例"""
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(ConfigTest, 'test'))
    return suite

if __name__ == '__main__':
    unittest.main()